package dfbz.homework1;


public class Test01 {
    public static void main(String[] args) {
       printEvent(20);
    }
    public static void printEvent(int n){
        for (int i = 0; i <=n; i++) {
            if (i%2==0){
                System.out.println(i);
            }
        }
    }
}
